package com.station.server.entity;

import javax.persistence.*;

/**
 * User: JinJavaMojo
 * Date: 25.09.13
 */
@Table(name = "CASH_OFFICE", schema = "public", catalog = "")
@Entity
public class CashOffice extends PlaceableEntity {

    @Column(name = "MAX_CASH_ALLOWED")
    private double maxCashAllowed;

    @Column(name = "CURRENT_CASH")
    private double currentCash;

    @OneToOne(targetEntity = Station.class, cascade = CascadeType.ALL)
    private Station station;

    public double getMaxCashAllowed() {
        return maxCashAllowed;
    }

    public void setMaxCashAllowed(double maxCashQuantity) {
        this.maxCashAllowed = maxCashQuantity;
    }

    public double getCurrentCash() {
        return currentCash;
    }

    public void setCurrentCash(double currentCash) {
        this.currentCash = currentCash;
    }

    public Station getStation() {
        return station;
    }

    public void setStation(Station station) {
        this.station = station;
    }
}
